<?php
if(!$_SESSION['memberID']){exit("<script>window.location='dlogin.html'</script>");}
include("../../com.inc.php");
$tpl=array();
$sel="SELECT id,title FROM uu_fx_pri_tpl WHERE distid={$_SESSION['sid']}";//
$GLOBALS['le']->query($sel);
while($row=$GLOBALS['le']->fetch_assoc()){
	if(!$row['id']){echo 0;break;}
	$tpl[]=$row;
}
echo json_encode($tpl);
?>